/*
 * Copyright 2021 Shulie Technology, Co.Ltd
 * Email: shulie@shulie.io
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  position: relative;
  transition: all 0.125s;
  margin: 0;
}

.logo.unflod {
  width: 56px;
}
.logo .titleName {
  margin: 0;
  height: 50px;
  line-height: 50px;

  .logoImg {
    height: 14px;
    width: 14px;
    font-weight: 900;
    color: rgba(17, 186, 215, 1);
    background: white;
    border-radius: 999px;
    display: inline-block;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    text-shadow: 0 0 0 10px rgba(17, 186, 215, 1);
    box-shadow: 0 0 0 9px white;
  }
  .logoName {
    padding-left: 12px;
    font-size: 14px;
    font-weight: 900;
    font-style: italic;
  }
}

.logo button {
  color: white;
  position: absolute;
  right: 0;
  padding: 0;
  transition: all 0.125s;
}
.logo button.menuOpen {
  padding-right: 4px;

  svg {
    font-size: 14px;
    font-weight: bolder;
  }
}
.logo button.menuClose {
  padding-right: 4px;
  margin-top: 16px;
  svg {
    font-size: 14px;
    font-weight: bolder;
  }
}
.logo button:hover {
  color: white;
}
.logo button:focus {
  color: white;
}

.header {
  margin: 0 auto;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 0 40px 0 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
  z-index: 9;
  .headerExtra {
    display: flex;
    justify-content: center;
    align-items: center;
    // min-width: calc(100% - 160px);
    padding: 0;
  }
}

.wrap {
  max-width: 1200px;
  width: 1200px;
  display: flex;
  margin: auto;
}

.menu {
  :global {
    .ant-menu-item,
    .ant-menu-submenu {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.sider {
  box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
  overflow-x: hidden;
  // padding-top: 50px;
  :global {
    .ant-menu {
      li:first-child {
        margin-top: 0;
      }
    }
    .ant-layout-sider-children {
      display: flex;
      flex-direction: column;
    }
    .ant-menu-sub {
      overflow-x: hidden;
    }

    .ant-menu-dark .ant-menu-inline.ant-menu-sub {
      box-shadow: none;
    }

    .ant-menu.ant-menu-dark .ant-menu-item-selected,
    .ant-menu-submenu-popup.ant-menu-dark .ant-menu-item-selected {
      background-color: rgba(14, 176, 201, 1);
      border-left: 2px solid rgba(255, 182, 74, 1);
    }
  }
}

.menuCard {
  background-color: transparent;
  box-shadow: none;
  border: none;
  border-top: 1px solid rgba(25, 205, 232, 1);

  :global {
    .ant-card-body {
      padding: 12px;
    }
    .ant-avatar {
      height: 24px;
      width: 24px;
    }
  }
}

.menuMeta {
  align-items: center;
  vertical-align: middle;
  display: flex;
  color: white;
}
.menuCard .ant-card-meta-title {
  color: white;
}

.tabBarNav {
  display: flex;
  justify-content: start;
  vertical-align: top;
  height: 50px;
}
// .tabItem {
//   min-width: 40px;
//   max-width: 160px;
//   padding-left: 20px;
//   background-color: rgb(53, 65, 83);
//   word-break: keep-all;
//   overflow: hidden;
//   text-overflow: ellipsis;
//   display: flex;
//   justify-content: space-between;
//   line-height: 40px;
//   height: 40px;
//   border-radius: 0 5px 0 0;
//   position: relative;
//   a {
//     max-width: 120px;
//     display: inline-block;
//     word-break: keep-all;
//     overflow: hidden;
//     text-overflow: ellipsis;
//     line-height: 40px;
//   }
//   i {
//     display: inline-block;
//     min-width: 20px;
//     padding-top: 15px;
//     padding-left: 10px;
//     position: relative;
//     z-index: 1001;
//   }
// }
.tabItemSelected,
.tabItem {
  min-width: 40px;
  max-width: 160px;
  padding-left: 20px;
  background-color: #1d2530;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  justify-content: space-between;
  line-height: 40px;
  height: 40px;
  border-radius: 0 5px 0 0;
  position: relative;
  a {
    min-width: 20px;
    max-width: 120px;
    display: inline-block;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 40px;
    color: #7d8da6;
  }
  i {
    display: inline-block;
    min-width: 20px;
    padding-top: 12px;
    padding-left: 8px;
    padding-right: 4px;
    position: relative;
    z-index: 1001;
    color: #7d8da6;
    visibility: visible;
  }
  .tabItemClose {
    padding: 0;
    color: #354153;
    visibility: visible;
  }
}
.tabItem {
  background-color: #354153;
  a {
    color: #6a798e;
  }
  i {
    color: #6a798e;
    visibility: hidden;
  }
  .tabItemClose {
    color: #6a798e;
    visibility: hidden;
  }
}
// .tabItem:before{
//   content:'';
//   display: block;
//   background-color: #354153;
//   width: 40px;
//   height: 40px;
//   border-radius: 20px;
//   transform: rotate(-5deg);
//   position: absolute;
//   right: -20px;
//   top: 0;
//   z-index: 1000;
// }
